package org.jeecg.modules.assets.entity;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.jeecg.modules.assets.vo.ApplyAndReturnItem;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;

/**
 * @Description: 资产明细
 * @Author: jeecg-boot
 * @Date: 2023-12-12
 * @Version: V1.0
 */
@Data
@TableName("assets_item")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "assets_item对象", description = "资产明细")
public class AssetsItem {

    /**
     * id
     */
    @TableId(type = IdType.AUTO)
    //@Excel(name = "资产id", width = 15)
    @ApiModelProperty(value = "id")
    private java.lang.Integer id;
    /**
     * id
     */

    @ApiModelProperty(value = "ids")
    @TableField(exist = false)
    private java.lang.String ids;

    @ApiModelProperty(value = "excType")
    @TableField(exist = false)
    private java.lang.String excType;
    /**
     * 资产编码
     */
    // @Excel(name = "资产编码", width = 15)
    @ApiModelProperty(value = "资产编码")
    private java.lang.String assetCoding;
    /**
     * 资产名称
     */
    @Excel(name = "设备名称", width = 15)
    @ApiModelProperty(value = "设备名称")
    private java.lang.String assetName;
    /**
     * 设备编码
     */
    @Excel(name = "设备编码", width = 15)
    @ApiModelProperty("设备编码")
    private String deviceCode;
    /**
     * 仓库数量
     */
    @Excel(name = "仓库数量", width = 15)
    @ApiModelProperty(value = "仓库数量")
    private Integer storeNum;


    /**
     * 仓库可用数量
     */
    @Excel(name = "可用数量", width = 15)
    @ApiModelProperty(value = "可用数量")
    private java.lang.Integer storeUseNum;

    @Excel(name = "设备分类", width = 15)
    @ApiModelProperty("设备分类")
    private String categoryName;

    /**
     * 规格型号
     */
    //@Excel(name = "规格型号", width = 15)
    @ApiModelProperty(value = "规格型号")
    private java.lang.String spec;
    /**
     * 类别
     */
    //@Excel(name = "类别", width = 15)
    @ApiModelProperty(value = "资产类别")
    private java.lang.Integer category;

    /**
     * status
     */
    @Excel(name = "设备状态", width = 15)
    @ApiModelProperty(value = "status")
    private java.lang.String status;
    @Excel(name = "申领人", width = 15)
    @ApiModelProperty("申领人")
    private String lender;

    @ApiModelProperty(value = "借用单位")
    @Excel(name = "借用单位", width = 15)
    private java.lang.String deptName;

    @ApiModelProperty(value = "设备备注")
    @Excel(name = "设备备注", width = 15)
    private String remark;

    /**
     * 所属公司
     */
    // @Excel(name = "所属公司", width = 15)
    @ApiModelProperty(value = "所属公司")
    private java.lang.String company;

    @ApiModelProperty("公司名称")
    private java.lang.String companyName;
    /**
     * 所属部门
     */
    //  @Excel(name = "所属部门", width = 15)
    @ApiModelProperty(value = "所属部门")
    private java.lang.Integer dept;
    /**
     * 所属人
     */
    // @Excel(name = "所属人", width = 15)
    @ApiModelProperty(value = "所属人")
    private java.lang.String owner;
    /**
     * 使用人
     */
    //  @Excel(name = "使用人", width = 15)
    @ApiModelProperty(value = "使用人")
    private java.lang.String userer;
    @ApiModelProperty(value = "使用人id")
    private java.lang.String usererId;
    /**
     * 使用年限
     */
    // @Excel(name = "使用年限", width = 20, format = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "使用年限")
    private String useTime;
    /**
     * 原值
     */
    //  @Excel(name = "原值", width = 15)
    @ApiModelProperty(value = "原值")
    private java.lang.String original;
    /**
     * 净值
     */
    //  @Excel(name = "净值", width = 15)
    @ApiModelProperty(value = "净值")
    private java.lang.String netWorth;


    /**
     * url
     */
    // @Excel(name = "url", width = 15)
    @ApiModelProperty(value = "url")
    private java.lang.String url;
    /**
     * 所属部门名称
     */


    /**
     * 所属部门名称
     */
    @ApiModelProperty(value = "所属部门Id")
    private java.lang.Integer deptId;
    @ApiModelProperty(value = "创建时间")
    private String createTime;
    @ApiModelProperty(value = "更新时间")
    private String updateTime;
    @ApiModelProperty(value = "简单部门名称")
    private String simpleDeptName;

    @ApiModelProperty(value = "异常描述")
    @TableField(exist = false)
    private String errorDesc;

    @ApiModelProperty(value = "修改类型，1个人信息修改，2初盘修改，3复盘修改，4抽盘修改")
    @TableField(exist = false)
    private Integer updateType;


    @ApiModelProperty(value = "盘点状态,0未盘点，1已盘点。")
    @TableField(exist = false)
    private java.lang.String inventoryStatus;
    @ApiModelProperty(value = "盘点方式，1扫码。2直盘")
    private Integer inventoryType;

    @ApiModelProperty("资产使用年")
    private String planUserYear;
    @ApiModelProperty("资产使用月")
    private String planUserMonth;

    @ApiModelProperty("归属地")
    //@Excel(name = "资产地址", width = 15)
    private String assetsLocation;


    @ApiModelProperty("开始时间")
    @TableField(exist = false)
    private String startTime;


    @ApiModelProperty("结束时间")
    @TableField(exist = false)
    private String endTime;
    /**
     * 使用组别
     */
    // @Excel(name = "资产编组", width = 15)
    @ApiModelProperty(value = "资产编组")
    @TableField("`group`")
    private String group;

    @ApiModelProperty(value = "资产编组")
    //@Excel(name = "资产编组", width = 15)
    private String groupName;
    @ApiModelProperty(value = "设备领用状态。1在库，0不在库")
    private Integer applyStatus;

    //当前领用单id
    @ApiModelProperty(value = "当前领用单id")
    private Integer applyId;
    //当前归还单id
    @ApiModelProperty(value = "当前归还单id")
    private Integer returnId;


    @ApiModelProperty(value = "资产数量")
   // @Excel(name = "资产数量", width = 15)
    private Integer num;

    /**
     * 货架号
     */
    // @Excel(name = "货架号", width = 15)
    @ApiModelProperty(value = "货架号")
    private java.lang.String rack;
    /**
     * 箱号
     */
    //@Excel(name = "箱号", width = 15)
    @ApiModelProperty(value = "箱号")
    private java.lang.String box;

    @ApiModelProperty(value = "查询类型,1分类，2编组")
    @TableField(exist = false)
    private String queryType;


    @ApiModelProperty("领用归还明细")
    @TableField(exist = false)
    List<ApplyAndReturnItem> applyAndReturnItems;


    @TableField(exist = false)
    private String type;


}
